package com.tv.cms.base.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * TODO
 *
 * @author
 * @date
 **/
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BaseModel implements Serializable {
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    private Integer createBy;
    private Integer updateBy;
    private Integer status;

    @TableField(exist = false)
    private String createName;
    @TableField(exist = false)
    private String updateName;
    @TableField(exist = false)
    @Builder.Default
    private Integer page = 1;
    @TableField(exist = false)
    @Builder.Default
    private Integer limit = 30;

    @TableField(exist = false)
    private String token;
    @TableField(exist = false)
    private String mac;
}
